package com.udata.client.service.impl;

import com.udata.client.service.TiebaExpService;
import com.udata.server.dao.TiebaExpDao;
import com.udata.shared.exception.OperationException;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class TiebaExpServiceImpl extends RemoteServiceServlet implements
		TiebaExpService {

	@Override
	public Boolean saveData(String category, Integer pageNum) {
		try {
			this.getThreadLocalRequest();
			return TiebaExpDao.getinstance().saveData(category, pageNum);
		} catch (OperationException e) {
			return false;
		}
	}

}
